package com.indusfo.spc.mapper;

import com.indusfo.spc.pojo.BatchRepairFlow;
import com.indusfo.spc.pojo.BatchRepairFlow;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author liub
 * @Date 2019/12/6 9:44
 * @Version 1.0
 */

public interface BatchRepairFlowMapper {
    /**
     * 新增
     */
    int insertBatchRepairFlow(BatchRepairFlow batchRepairFlow);

    /**
     * 修改
     */
    int updateBatchRepairFlow(BatchRepairFlow batchRepairFlow);

    /**
     * 查询
     */
    List<BatchRepairFlow> queryBatchRepairFlow(BatchRepairFlow batchRepairFlow);

    /**
     * 总数
     */
    int countBatchRepairFlow(BatchRepairFlow batchRepairFlow);

    /**
     * 判重
     */
    int checkBatchRepairFlow(BatchRepairFlow batchRepairFlow);

    /**
     * 启停
     */
    int deleteBatchRepairFlow(@Param("batchRepairFlowIds") List<Integer> batchRepairFlowIds, @Param("dataState") Integer dataState);

    /**
     * 级联删除查询
     */
    List<BatchRepairFlow> queryBatchRepairFlowByBatchRepairId(@Param("batchRepairId") Integer batchRepairId);

    /**
     * 级联删除
     */
    int deleteBatchRepairFlowByBatchRepairFlowId(@Param("batchRepairFlowId") Integer batchRepairFlowId, @Param("dataState") Integer dataState);

}